Xbasic

BROWSE.CLOSE Function

Syntax

.Close([L no_check])

Arguments

no_check

Optional. Default = .F. (FALSE)

.T. = Displays a message box to confirm that the operator wants to close the browse. Does not trigger the CanExit event.
.F. = Does not display a message. Does trigger the CanExit event.

Description

The .CLOSE() method closes the layout window.

Example

This script closes current browse and triggers the CanExit event.

topparent.close(.f.)

This script closes the Sales browse:

:sales.close()

Limitations

Desktop applications only.

See Also